/*
 * Copyright 2000-2018. YGSoft.Inc All Rights Reserved.
 */

package com.wn.budget.code.context;


import com.wn.budget.model.Admin;

/**
 * 与登录用户相关的上下文属性
 */
public interface LoginUserProperty extends BaseContext {

    default Admin getLoginUser() {
        Admin admin = (Admin) getRepository().get("LOGIN_USER");
        return admin;
    }

    default void setLoginUser(Admin loginUser) {
        getRepository().put("LOGIN_USER", loginUser);
    }

}
